import type {
  getArtistAllMusicParams,
  getArtistDescRes,
  getArtistDetailParams,
  getArtistDetailRes,
  getArtistFollowCount,
  getArtistSongsRes,
} from "@/types/artist";
import request from "@/utils/request";
export const getArtistList = () => {
  return request({
    method: "get",
    url: "/artist/list",
  });
};
export const getArtistDetail = (params: getArtistDetailParams) => {
  return request<getArtistDetailRes>({
    method: "get",
    url: "/artist/detail",
    params,
  });
};
export const getArtistFans = (params: getArtistDetailParams) => {
  return request<getArtistFollowCount>({
    method: "get",
    url: "/artist/follow/count",
    params,
  });
};
export const getArtistDesc = (params: getArtistDetailParams) => {
  return request<getArtistDescRes>({
    method: "get",
    url: "/artist/desc",
    params,
  });
};
export const getArtistAllMusic = (params: getArtistAllMusicParams) => {
  return request<getArtistSongsRes>({
    method: "get",
    url: "/artist/songs",
    params,
  });
};
